package com.hh.base.common;

import com.hh.base.util.PropertiesUtils;

import java.util.Properties;

/**
 * Created by liuhanhui on 2017/11/1.
 */
public class BaseConfig {

    public static String PATH_EXCEL;

    public static String PATH_PROJECT;

    public static String GROUPID;

    public static String ARTIFACTID;

    public static String PACKAGE;

    public static String SWITCH_SERVICE;

    public static String SWITCH_WEBXML;

    public static String SWITCH_POM;

    public static String SWITCH_BASE;

    static {
        Properties properties = PropertiesUtils.loadProperties(BaseConfig.class, "/base.properties");
        PATH_EXCEL = properties.getProperty("path.excel");
        PATH_PROJECT = properties.getProperty("path.project");
        GROUPID = properties.getProperty("groupid");
        ARTIFACTID = properties.getProperty("artifactid");
        PACKAGE = properties.getProperty("package");
        SWITCH_SERVICE = properties.getProperty("switch.service", "0");
        SWITCH_WEBXML = properties.getProperty("switch.webxml", "0");
        SWITCH_POM = properties.getProperty("switch.pom", "0");
        SWITCH_BASE = properties.getProperty("switch.base", "1");
    }

    public static void main(String[] args) {
        System.out.println(PATH_EXCEL);
    }
}
